package com.CST.service.impl.cb;

import com.CST.dto.cb.DateDTO;
import com.CST.dto.cb.InSourceDTO;
import com.CST.entity.cb.EtlInpatientIncome;
import com.CST.mapper.cst.cb.EtlInpatientIncomeMapper;
import com.CST.service.cb.IEtlInpatientIncomeService;
import com.CST.vo.cb.InComeInSourceVO;
import com.CST.vo.cb.InSourceVO;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ly
 * @since 2022-08-29
 */
@Service
public class EtlInpatientIncomeServiceImpl extends ServiceImpl<EtlInpatientIncomeMapper, EtlInpatientIncome> implements IEtlInpatientIncomeService {

    @Autowired
    private  EtlInpatientIncomeMapper InpatientIncomeMapper;
    /**
     * 获取住院明细
     *
     * @param entity
     * @return
     */
    @Override
    public List<InSourceVO> getHospitalizationList(InSourceDTO entity) {
        List<InSourceVO> InpatientIncome = InpatientIncomeMapper.getHospitalizationList(entity);
        return  InpatientIncome;
    }

    @Override
    public List<InComeInSourceVO> getInComeListDetail(DateDTO dateDTO) {

        return InpatientIncomeMapper.getInComeListDetail(dateDTO);
    }


}
